﻿/*
openEco 0.000.1
ben howes  100611
 */
using System;

namespace openEco
{
	public class Model : IOpenEco
	{
		//PRIVATE VARIABLES
		
		//PUBLIC PROPERTIES
		
		//PUBLIC METHODS
		
		//create a new model
		public void newModel(){
			string myNewModel = "model.new";
			cmd.Execute(myNewModel, 1000);
		}
		
		//update the current model
		public void update(){
			string myUpdate = "model.update";
			cmd.Execute(myUpdate, 500);
		}
		
		public void material(int obje, int mat){
			string matname = "set.object.material " + obje + "" + mat;
			cmd.Execute(matname,1000);
		}
		public void projectnorth(int north){
			string setnorth = "set.project.north " + north;
			cmd.Execute(setnorth,1000);
		}
		
		//CONSTRUCTORS
		
		//call the base constructor
		public Model(NDde.Client.DdeClient c, NDde.Client.DdeClient r) : base(c,r){
		}
		
	}
}
